package cn.stylefeng.guns.modular.business.service.impl;

import cn.stylefeng.guns.modular.business.entity.DeviceBrand;
import cn.stylefeng.guns.modular.business.mapper.DeviceBrandMapper;
import cn.stylefeng.guns.modular.business.service.DeviceBrandService;
import cn.stylefeng.roses.kernel.dsctn.api.annotation.DataSource;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceBrandServiceImpl implements DeviceBrandService {

    @Autowired
    private DeviceBrandMapper deviceBrandMapper;

    @Override
    @DataSource(name = "business")
    public List<DeviceBrand> list() {
        QueryWrapper<DeviceBrand> qw = new QueryWrapper<>();
        return this.deviceBrandMapper.selectList(qw);
    }
}
